import { defineStore } from 'pinia'
const key = 'approve'

// 定义 Store
export const useApproveStore = defineStore('approve', {
  state: () => {
    return {
      approve: window.localStorage.getItem(key) || ''
    }
  },
  actions: {
    setApprove(val: string) {
      this.approve = val
      window.localStorage.setItem(key, val)
    }
  }
})
